<block name='head'><include file='Include/AdminHead' /></block>
<body>
<block name='header'><include file='Include/AdminHeader'/></block>
<block name='slide'><include file='Include/AdminSlide'/></block>

<div class="xr" align="center">
    <div class='xkcontent'>
        <form action="{:U('do'.ACTION_NAME)}" method="post" name='submit' enctype="multipart/form-data" target="">
        <input type="hidden" value="{$columnKey}" name='key' />
        <input type="hidden" value="{$list[$columnKey]}" name="keyvalue" />
        <input type="hidden" value="0" name="noajax" />
        <input type="hidden" value="0" name="uploadkey" />
        <table class="xktable table table-striped" >
        <block name='content'></block>
        </table>
        </form>
	</div>
</div>  
<script type="text/javascript">
	$(document).ready(function(){ 
		if(typeof(uploadkey)!=='undefined'){
			$("input[name='uploadkey']").val(uploadkey);
		}
		$("input[type='submit']").click(function(){

			if(typeof(noajax)!=='undefined' && noajax!=0){
				$("input[name='noajax']").val(noajax);	
				$("form[name='submit']").attr('target','frame');
				$("form[name='submit']").submit();
			}else{
			    var url=$("form[name='submit']").attr('action');
				var da=$("form[name='submit']").serialize();
				$.post(url,da,function(data){
					console.log(data);
					if(data['status']==1){
						var pre=document.referrer;
	                   window.location.href=pre;
					}else{
						alert('失败--'+data['info']);
					}
				});	
			}
			
			return false;
		});
	});
	//用于伪表单的异步提交的返回url跳转
	function dumpdirect(url){
         window.location.href=url;
	}
</script>
<iframe name="frame" style="display:none"></iframe>
</body>
</html>